import http from "@/utils/http/index";

// 营业方式
export const businessTradeTime = () => {
  return http<any>({
    method: "GET",
    url: `/bjp/api.auth.businessTradeTime/get`,
  });
};
// 修改营业方式
export const timeSetWay = (data:any) => {
  return http<any>({
    method: "POST",
    url: `/bjp/api.auth.businessTradeTime/setWay`,
    data
  });
};
// 营业状态
export const setStatus = (data:any) => {
  return http<any>({
    method: "POST",
    url: `/bjp/api.auth.businessTradeTime/setStatus`,
    data
  });
};
// 营业时间列表
export const timeGetList = (data:any) => {
  return http<any>({
    method: "POST",
    url: `/bjp/api.auth.businessTradeTime/getList`,
    data
  });
};
// 添加营业时间
export const timeSet = (data:any) => {
  return http<any>({
    method: "POST",
    url: `/bjp/api.auth.businessTradeTime/set`,
    data
  });
};
// 营业时间详情
export const getDetails = (data:any) => {
  return http<any>({
    method: "POST",
    url: `/bjp/api.auth.businessTradeTime/getDetails`,
    data
  });
};
// 删除营业时间详情
export const timeDelete = (data:any) => {
  return http<any>({
    method: "POST",
    url: `/bjp/api.auth.businessTradeTime/remove`,
    data
  });
};
// 自动设置 - 跟随系统节假日
export const setHoliday = (data:any) => {
  return http<any>({
    method: "POST",
    url: `/bjp/api.auth.businessTradeTime/setHoliday`,
    data
  });
};
